/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package network.packets;

import utils.Utils;

/**
 *
 * @author Kvest
 */
public class DriverInBlackList extends Packet 
{
    private boolean inBlacklist;
    
    public DriverInBlackList(byte[] data)
    {
        super(DRIVER_IN_BLACK_LIST_RESPONCE, data);
    }
    
    protected void parse(byte[] data) 
    {
        int offset = 2;
        
        inBlacklist = Utils.byteToBoolean(data[offset]);
        ++offset;
    }
    
    public void print() 
    {
        System.out.println("DriverInBlackList=" + inBlacklist);
    }

    public boolean isInBlacklist() 
    {
        return inBlacklist;
    }
}
